dep1 = 'Seccurity'
dep2 = 'Python'
dep1_m = 'cq_bomb'
dep2_m = 'qinke'
sec_free = 456789.123456
python_free = 1234.3456

# line1 ='Department1 name:%-10s Manager:%-10s COURSE FEES:%-10.2f The End!'%(dep1,dep1_m,sec_free)
# line2 ='Department2 name:%-10s Manager:%-10s COURSE FEES:%-10.2f The End!'%(dep2,dep2_m,python_free)

line1 ='Department1 name:{0:<10} Manager:{1:<10} COURSE FEES:{2:<10.2f} The End!'.format(dep1,dep1_m,sec_free)
line2 ='Department1 name:{0:<10} Manager:{1:<10} COURSE FEES:{2:<10.2f} The End!'.format(dep2,dep2_m,python_free)

length = len(line1)
print('='*length)
print(line1)
print(line2)
print('='*length)